import request from "@/utils/request";

// 查询服务请求记录列表
export function listLog(query) {
  return request({
    url: "/user/log/list",
    method: "post",
    data: query,
  });
}

// 查询服务请求记录详细
export function getLog(id) {
  return request({
    url: "/user/log/" + id,
    method: "get",
  });
}

// 新增服务请求记录
export function addLog(data) {
  return request({
    url: "/user/log",
    method: "post",
    data: data,
  });
}

// 修改服务请求记录
export function updateLog(data) {
  return request({
    url: "/user/log",
    method: "put",
    data: data,
  });
}

// 删除服务请求记录
export function delLog(id) {
  return request({
    url: "/user/log/" + id,
    method: "delete",
  });
}
